package javaMetaModel;

import javaMetaModel.visitor.IMetaModelVisitor;

public class Visibility {

	public static final String PRIVATE = "private";

	public static final String PROTECTED = "protected";

	public static final String PUBLIC = "public";

	protected String mVisibility = PROTECTED;

	public void setPrivate() {
		this.mVisibility = PRIVATE;
	}

	public void setProtected() {
		this.mVisibility = PROTECTED;
	}

	public void setPublic() {
		this.mVisibility = PUBLIC;
	}

	public boolean isPrivate() {
		return this.mVisibility.equals(PRIVATE);
	}

	public boolean isProtected() {
		return this.mVisibility.equals(PROTECTED);
	}

	public boolean isPublic() {
		return this.mVisibility.equals(PUBLIC);
	}

	public String getVisibility() {
		return this.mVisibility;
	}

	public void accept(IMetaModelVisitor aVisitor) {
		aVisitor.visitVisibility(this);
	}
}
